//
// Created by fang.junpeng on 2017/4/1.
//

#ifndef FJP_HWRT_GA_H
#define FJP_HWRT_GA_H

#include "net.h"

struct Net;
struct Flow;

struct GAchain{
    int gene[500];
};

struct GA{
    Net& net;
    Flow& flow;
    GAchain* ga_chain;
    int group_num;
    GA(Net& net,Flow& flow):net(net),flow(flow){ga_chain = new GAchain[net.consumNodeNum];};
    ~GA();
    void initGrop(void);
};

#endif //FJP_HWRT_GA_H
